<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>SceneEntity Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">OBMessenger </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">On-Bright</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/actionForDeviceDic">actionForDeviceDic</option>
		
		<option value="//api/name/serverLocalIndex">serverLocalIndex</option>
		
	</optgroup>
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/ctlCreateAsName:withTag:serverOrLocalBox:withConditions:withActions:handler:">+ ctlCreateAsName:withTag:serverOrLocalBox:withConditions:withActions:handler:</option>
		
		<option value="//api/name/ctlGetAllUsingPredicate:">+ ctlGetAllUsingPredicate:</option>
		
		<option value="//api/name/ctlGetPredicateForContainEntity:">+ ctlGetPredicateForContainEntity:</option>
		
		<option value="//api/name/ctlGetPredicateForControlable">+ ctlGetPredicateForControlable</option>
		
		<option value="//api/name/ctlGetPredicateForHavePair:">+ ctlGetPredicateForHavePair:</option>
		
		<option value="//api/name/ctlGetPredicateForLocalScene:">+ ctlGetPredicateForLocalScene:</option>
		
		<option value="//api/name/ctlGetPredicateForMine">+ ctlGetPredicateForMine</option>
		
		<option value="//api/name/ctlRefresh">+ ctlRefresh</option>
		
		<option value="//api/name/makeActionList:withAction:">+ makeActionList:withAction:</option>
		
		<option value="//api/name/makeLocalActionListWithDic:">+ makeLocalActionListWithDic:</option>
		
		<option value="//api/name/makeLocalConditionListWithDic:">+ makeLocalConditionListWithDic:</option>
		
		<option value="//api/name/sceneEntityMake:">+ sceneEntityMake:</option>
		
	</optgroup>
	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/compareActionsWithNew:">- compareActionsWithNew:</option>
		
		<option value="//api/name/conditionDescriptionForIndexPath:">- conditionDescriptionForIndexPath:</option>
		
		<option value="//api/name/ctlActionNow:">- ctlActionNow:</option>
		
		<option value="//api/name/ctlBlindRoom:">- ctlBlindRoom:</option>
		
		<option value="//api/name/ctlDelete:">- ctlDelete:</option>
		
		<option value="//api/name/ctlEnable:handler:">- ctlEnable:handler:</option>
		
		<option value="//api/name/ctlModifyActions:handler:">- ctlModifyActions:handler:</option>
		
		<option value="//api/name/ctlModifyConditions:handler:">- ctlModifyConditions:handler:</option>
		
		<option value="//api/name/ctlRename:withTag:handler:">- ctlRename:withTag:handler:</option>
		
		<option value="//api/name/ctlUnBlindRoom:">- ctlUnBlindRoom:</option>
		
		<option value="//api/name/ctlUpdateSceneInfo:">- ctlUpdateSceneInfo:</option>
		
		<option value="//api/name/localActionsComparedWithNewLists:">- localActionsComparedWithNewLists:</option>
		
		<option value="//api/name/localActionsForIndexSet:">- localActionsForIndexSet:</option>
		
		<option value="//api/name/localConditionsForIndexPath:">- localConditionsForIndexPath:</option>
		
		<option value="//api/name/unitSceneWithMySelf">- unitSceneWithMySelf</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">SceneEntity Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>OBModel.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						<h2 class="task-title">Other Methods</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/sceneEntityMake:" title="sceneEntityMake:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sceneEntityMake:">+&nbsp;sceneEntityMake:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>if jsonDic is nil, it return a new entity as crete, index is 0</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable instancetype)sceneEntityMake:(nullable NSDictionary *)<em>jsonDic</em></code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/actionForDeviceDic" title="actionForDeviceDic"></a>
	<h3 class="method-title"><code><a href="#//api/name/actionForDeviceDic">&nbsp;&nbsp;actionForDeviceDic</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>devices and actions in scene    (key:index value:indexOfActionList, key:target value:deviceEntity or groupEntity, key:action value:action status string)</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) NSSet&lt;NSDictionary*&gt; *actionForDeviceDic</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/serverLocalIndex" title="serverLocalIndex"></a>
	<h3 class="method-title"><code><a href="#//api/name/serverLocalIndex">&nbsp;&nbsp;serverLocalIndex</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>/localControl////</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) int serverLocalIndex</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/unitSceneWithMySelf" title="unitSceneWithMySelf"></a>
	<h3 class="method-title"><code><a href="#//api/name/unitSceneWithMySelf">&ndash;&nbsp;unitSceneWithMySelf</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Get unit scene paired entity</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable SceneEntity *)unitSceneWithMySelf</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>paired sceneEntity if have: get main entity if self have unitTag, otherwise get pair entity if have anyEntity have unitTag equal self addr</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/conditionDescriptionForIndexPath:" title="conditionDescriptionForIndexPath:"></a>
	<h3 class="method-title"><code><a href="#//api/name/conditionDescriptionForIndexPath:">&ndash;&nbsp;conditionDescriptionForIndexPath:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Condition description</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSDictionary *)conditionDescriptionForIndexPath:(nullable NSIndexPath *)<em>indexpath</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>indexpath</code></th>
						<td><p>indexPath for conditons, nil for all, if row is NSNotFound, mean the top condition.</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>condition description: @&ldquo;description&rdquo;:description, @&ldquo;parserDic&rdquo;:condition resolve array</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/makeLocalConditionListWithDic:" title="makeLocalConditionListWithDic:"></a>
	<h3 class="method-title"><code><a href="#//api/name/makeLocalConditionListWithDic:">+&nbsp;makeLocalConditionListWithDic:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>make local condition info use conditionList.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSArray *)makeLocalConditionListWithDic:(nonnull NSDictionary *)<em>conditionList</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>conditionList</code></th>
						<td><p>conditionList makeBy -makeConditionListBy&hellip;.:</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>local condition info, nil for err;</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/localConditionsForIndexPath:" title="localConditionsForIndexPath:"></a>
	<h3 class="method-title"><code><a href="#//api/name/localConditionsForIndexPath:">&ndash;&nbsp;localConditionsForIndexPath:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>condition info array for local set</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSArray *)localConditionsForIndexPath:(nullable NSIndexPath *)<em>indexPath</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>indexPath</code></th>
						<td><p>indexPath at conditions, nil or section==NSNotFound for all, row==NSNotFound for condition group by section index</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>local condition infos Array, nil for err or nothing;</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/makeActionList:withAction:" title="makeActionList:withAction:"></a>
	<h3 class="method-title"><code><a href="#//api/name/makeActionList:withAction:">+&nbsp;makeActionList:withAction:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>make a actionList dic</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSDictionary *)makeActionList:(nonnull id)<em>deviceOrGroupEntity</em> withAction:(nonnull NSString *)<em>status</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>deviceOrGroupEntity</code></th>
						<td><p>deviceEntity or <a href="../Classes/GroupEntity.html">GroupEntity</a></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>status</code></th>
						<td><p>action for device or group in scene</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>actionList Dic</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/compareActionsWithNew:" title="compareActionsWithNew:"></a>
	<h3 class="method-title"><code><a href="#//api/name/compareActionsWithNew:">&ndash;&nbsp;compareActionsWithNew:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>compare actions listDic</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSArray&lt;NSArray*&gt; *)compareActionsWithNew:(nonnull NSArray *)<em>newActions</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>newActions</code></th>
						<td><p>new actionList array</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>compare result &lt;newArr,modifyArr,deleteArr>, or nil for err;</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/makeLocalActionListWithDic:" title="makeLocalActionListWithDic:"></a>
	<h3 class="method-title"><code><a href="#//api/name/makeLocalActionListWithDic:">+&nbsp;makeLocalActionListWithDic:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>make local action info use actionList.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSArray *)makeLocalActionListWithDic:(nonnull NSDictionary *)<em>actionList</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>actionList</code></th>
						<td><p>actionList makeBy -makeActionList:</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>local action info, nil for err;</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/localActionsForIndexSet:" title="localActionsForIndexSet:"></a>
	<h3 class="method-title"><code><a href="#//api/name/localActionsForIndexSet:">&ndash;&nbsp;localActionsForIndexSet:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>action info array for local set</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSArray *)localActionsForIndexSet:(nullable NSIndexSet *)<em>indexSet</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>indexSet</code></th>
						<td><p>indexSet at self.actions index, nil for all.</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>local action infos Array, nil for err;</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/localActionsComparedWithNewLists:" title="localActionsComparedWithNewLists:"></a>
	<h3 class="method-title"><code><a href="#//api/name/localActionsComparedWithNewLists:">&ndash;&nbsp;localActionsComparedWithNewLists:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>action info array for local set with compare actions listDic
call with <a href="#//api/name/compareActionsWithNew:">compareActionsWithNew:</a></p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSArray *)localActionsComparedWithNewLists:(nullable NSArray *)<em>newActions</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>newActions</code></th>
						<td><p>new actionList array</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>local action infos Array, nil for err;</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBModel.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						<a title="OBEntityControl Methods" name="task_OBEntityControl Methods"></a>
						<h2 class="task-title">OBEntityControl Methods</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/ctlGetAllUsingPredicate:" title="ctlGetAllUsingPredicate:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlGetAllUsingPredicate:">+&nbsp;ctlGetAllUsingPredicate:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>get sceneEntities from <a href="../Classes/OBModel.html">OBModel</a> Using Predicates.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSSet *)ctlGetAllUsingPredicate:(nullable NSArray&lt;NSPredicate*&gt; *)<em>predicates</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>predicates</code></th>
						<td><p>filtered predicate array if have</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>entitySet after using predicates if have</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlGetPredicateForHavePair:" title="ctlGetPredicateForHavePair:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlGetPredicateForHavePair:">+&nbsp;ctlGetPredicateForHavePair:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Predicate by unit Tag have or not.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nonnull NSPredicate *)ctlGetPredicateForHavePair:(BOOL)<em>isHavaUnitTag</em></code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSPredicate Predicate object for filtered.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlGetPredicateForMine" title="ctlGetPredicateForMine"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlGetPredicateForMine">+&nbsp;ctlGetPredicateForMine</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Predicate by server contain flag if already login.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nonnull NSPredicate *)ctlGetPredicateForMine</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSPredicate Predicate object for filtered.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlGetPredicateForLocalScene:" title="ctlGetPredicateForLocalScene:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlGetPredicateForLocalScene:">+&nbsp;ctlGetPredicateForLocalScene:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Predicate by scene type of local or server flag.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nonnull NSPredicate *)ctlGetPredicateForLocalScene:(BOOL)<em>isLocal</em></code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSPredicate Predicate object for filtered.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlGetPredicateForControlable" title="ctlGetPredicateForControlable"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlGetPredicateForControlable">+&nbsp;ctlGetPredicateForControlable</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Predicate by server online or local accessable flag.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nonnull NSPredicate *)ctlGetPredicateForControlable</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSPredicate Predicate object for filtered.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlGetPredicateForContainEntity:" title="ctlGetPredicateForContainEntity:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlGetPredicateForContainEntity:">+&nbsp;ctlGetPredicateForContainEntity:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Predicate by any entity contained (device, group, obox).</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nonnull NSPredicate *)ctlGetPredicateForContainEntity:(nonnull id)<em>anyEntity</em></code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSPredicate Predicate object for filtered.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlRefresh" title="ctlRefresh"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlRefresh">+&nbsp;ctlRefresh</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>WARNING!!! CLEAN Scene Model data only
before called [OBManager loadEntityData:OBM_Scene];
room maybe need to reload either</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)ctlRefresh</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlCreateAsName:withTag:serverOrLocalBox:withConditions:withActions:handler:" title="ctlCreateAsName:withTag:serverOrLocalBox:withConditions:withActions:handler:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlCreateAsName:withTag:serverOrLocalBox:withConditions:withActions:handler:">+&nbsp;ctlCreateAsName:withTag:serverOrLocalBox:withConditions:withActions:handler:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>create scene</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)ctlCreateAsName:(nonnull NSString *)<em>sceneName</em> withTag:(nullable NSString *)<em>tag</em> serverOrLocalBox:(nullable OboxEntity *)<em>targetBox</em> withConditions:(nullable NSArray *)<em>conditionLists</em> withActions:(nullable NSArray *)<em>actionLists</em> handler:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>sceneName</code></th>
						<td><p>scene name</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>tag</code></th>
						<td><p>scene unitTag.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>targetBox</code></th>
						<td><p>if local scene, need target box.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>conditionLists</code></th>
						<td><p>conditions of scene</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>actionLists</code></th>
						<td><p>actions of scene</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlBlindRoom:" title="ctlBlindRoom:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlBlindRoom:">&ndash;&nbsp;ctlBlindRoom:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>blind to target room</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlBlindRoom:(nonnull RoomEntity *)<em>room</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>room</code></th>
						<td><p>target room entity</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlUnBlindRoom:" title="ctlUnBlindRoom:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlUnBlindRoom:">&ndash;&nbsp;ctlUnBlindRoom:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>un-blind to target room</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlUnBlindRoom:(nonnull RoomEntity *)<em>room</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>room</code></th>
						<td><p>target room entity</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlEnable:handler:" title="ctlEnable:handler:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlEnable:handler:">&ndash;&nbsp;ctlEnable:handler:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>toggle scene enable</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlEnable:(BOOL)<em>enableOrNot</em> handler:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>enableOrNot</code></th>
						<td><p>enable or disable</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlDelete:" title="ctlDelete:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlDelete:">&ndash;&nbsp;ctlDelete:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>delete scene.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlDelete:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlRename:withTag:handler:" title="ctlRename:withTag:handler:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlRename:withTag:handler:">&ndash;&nbsp;ctlRename:withTag:handler:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>rename scene</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlRename:(nonnull NSString *)<em>newName</em> withTag:(nullable NSString *)<em>tag</em> handler:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>newName</code></th>
						<td><p>new name utf8-length max 16</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>tag</code></th>
						<td><p>scene unitTag.</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlModifyConditions:handler:" title="ctlModifyConditions:handler:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlModifyConditions:handler:">&ndash;&nbsp;ctlModifyConditions:handler:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>modify scene conditions, nil nothing modify, @[] remove all</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlModifyConditions:(nullable NSMutableArray&lt;NSMutableArray&lt;NSDictionary*&gt; *&gt; *)<em>newConditionLists</em> handler:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>newConditionLists</code></th>
						<td><p>new conditionLists to modify</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlModifyActions:handler:" title="ctlModifyActions:handler:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlModifyActions:handler:">&ndash;&nbsp;ctlModifyActions:handler:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>modify scene actions(auto compared), nil nothing modify, @[] remove all</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlModifyActions:(nullable NSMutableArray&lt;NSDictionary*&gt; *)<em>newActionLists</em> handler:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>newActionLists</code></th>
						<td><p>new actionLists to modify</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlUpdateSceneInfo:" title="ctlUpdateSceneInfo:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlUpdateSceneInfo:">&ndash;&nbsp;ctlUpdateSceneInfo:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>auto judge scene (dump or origin) modified, and setting info(override)</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlUpdateSceneInfo:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/ctlActionNow:" title="ctlActionNow:"></a>
	<h3 class="method-title"><code><a href="#//api/name/ctlActionNow:">&ndash;&nbsp;ctlActionNow:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>action scene right now</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)ctlActionNow:(nullable CtlResultBlock)<em>inHandler</em></code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBEntityControl.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 On-Bright. All rights reserved. Updated: 2017-06-09</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>